<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>排序去重等方法</title>
</head>
<body>
	<script type="text/javascript">
// var arr = ['c','a','b','e','g'];
//   console.log(arr.sort()) ;
//   var arr1 = ['one','two','three'];
// console.log(arr1.reverse());

// var arr2 = ['a','b','v','d',2,3];
// console.log(arr2.join('*'));

// var obj = [['michael',95],['bill',80],['cat',50]]
//   var m = new Map(obj)
//  console.log(m.get('cat')) 
// console.log(typeof obj)
// 
// 高阶函数map() 让函数作为参数。
 // var arr3 = [12,3,4,5,6,88,66]
 //  console.log(arr3.map(String))
 
 // function fix(x){
 // 	return x*x
 // }
 // var arr4 =[1,3,2,4,5,6,4,3]
 // console.log(arr4.map(fix))

//new Set()方法去重
var arr1 = [1,2,3,7,4,6,10,14,16,3,5,2,8,3,6,8,"b","c","b"];
var arr2 = Array.from(new Set(arr1));
console.log(arr2)
	</script>
</body>
</html>